Skip to content

Add security permission for temporary directory#105

Merged
nhorton merged 6 commits intomainfrom
claude/add-tmp-security-permission-8KX3s
Jan 21, 2026
Merged

Add security permission for temporary directory#105
nhorton merged 6 commits intomainfrom
claude/add-tmp-security-permission-8KX3s

Conversation

@nhorton
Copy link
Contributor

@nhorton nhorton commented Jan 21, 2026

Add sync_permissions method to ClaudeAdapter that automatically adds Read, Edit, and Write permissions for .deepwork/tmp/** to settings.json. This is called during the sync process (which runs during install) to ensure DeepWork has unrestricted access to its temporary directory.

  • Add sync_permissions() to AgentAdapter base class with default no-op
  • Implement sync_permissions() in ClaudeAdapter to add .deepwork/tmp/**
  • Call sync_permissions from sync_skills() after syncing hooks
  • Add unit tests for permission syncing

claude and others added 6 commits January 21, 2026 20:31
Add sync_permissions method to ClaudeAdapter that automatically adds
Read, Edit, and Write permissions for .deepwork/tmp/** to settings.json.
This is called during the sync process (which runs during install) to
ensure DeepWork has unrestricted access to its temporary directory.

- Add sync_permissions() to AgentAdapter base class with default no-op
- Implement sync_permissions() in ClaudeAdapter to add .deepwork/tmp/**
- Call sync_permissions from sync_skills() after syncing hooks
- Add unit tests for permission syncing
- Fix permission path syntax to use ./ prefix per Claude Code docs
  (e.g., Read(./.deepwork/tmp/**) instead of Read(.deepwork/tmp/**))
- Refactor ClaudeAdapter with reusable _load_settings, _save_settings,
  and add_permission methods for cleaner permission management
- Add add_skill_permissions method that adds Skill(name) permissions
  for each generated skill during sync, allowing Claude to invoke
  skills without permission prompts
- Update sync.py to collect skill paths and call add_skill_permissions
- Add comprehensive unit tests for new permission methods
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@nhorton nhorton merged commit 35b4fb1 into main Jan 21, 2026
4 checks passed
@nhorton nhorton deleted the claude/add-tmp-security-permission-8KX3s branch January 21, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants